//
//  SEGTopicPicViewModel.h
//  Commom
//
//  Created by Clavis on 2019/7/29.
//

#import <Foundation/Foundation.h>
#import "SEGAutoHeightImageViewModel.h"

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

#define kTopicPicViewHeight 160     // TopicPicView的高度

@interface SEGTopicPicViewModel : NSObject
@property (nonatomic, copy) NSString *topicTitle; // <#注释#>
@property (nonatomic, copy) NSArray *picUrlStrArray; // <#注释#>
@property (nonatomic, assign) CGFloat widgetWidth; //控件总宽度
@property (nonatomic, assign) CGFloat topicTitleWidth; //话题标签宽度
@end


@interface SEGTopicPicViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) CGFloat totalImageHeight;//控件总高度
@property (nonatomic, assign,readonly) CGFloat imageHeight;//图片高度
@property (nonatomic, assign,readonly) CGFloat imagePadding;//间距


@property (nonatomic, strong,readonly)SEGTopicPicViewModel *data;
- (instancetype)initWithData:(SEGTopicPicViewModel *)data;
-(void)segTopicPicViewLayout;

@property (nonatomic, assign) CGFloat topicTitleLabelHeight;//topicTitleLabel 高度
@property (nonatomic, strong) SEGTextLayout *topicTitleLabelTextLayout;//topicTitleLabel 富文本布局
/**
 图片layout
 */
@property (nonatomic, strong)SEGAutoHeightImageViewLayout *autoHeightImageViewLayout;
@end

